#include "imagefeature.h"
#include "inputimage.h"

using namespace cshotel;
using namespace boost;
using namespace std;
using namespace sift;

ImageFeature::ImageFeature(const sift::feature& newF, weak_ptr< InputImage > img) : f(newF), image(img) {}

feature& ImageFeature::getSIFTFeature() {
    return f;
}

void ImageFeature::addSIFTFeatureMatch(weak_ptr<ImageFeature> newMatch) {
    featureMatches.push_back(newMatch);
}

weak_ptr<InputImage> ImageFeature::getImage() {
    return image;
}

const std::vector<weak_ptr<ImageFeature> >& ImageFeature::getFeatureMatches() {
    return featureMatches;
}
